{* $Id$ *}
{include_core file="admin/lib/header.html" title="影院订单列表"}
<style type="text/css">
  .list-table tbody p{
      word-break: break-all;
      word-wrap: break-word;
  }
</style>
  <div class="page-header border-bottom clearfix">
    <h2 class="left">影院订单管理<span>影院订单管理</span></h2>
    <a style="margin-top:5px; display:block; float:right;" href="{get_url()}&is_excel=1" class="btn btn-xs btn-primary js_downList">导出订单明细EXCEL</a>
    <a style="margin-top:5px; display:block; float:right;" href="{get_url()}&is_excel=2" class="btn btn-xs btn-primary js_downList">导出汇总EXCEL</a>
  </div>
  <div class="search-form js_advancedForm">
    <form action="{AnUrl('cinema/admin/cinema_order')}" method="get" class="js_orderSearchForm">
      <input type="hidden" name="status" value="{$status}">
      <input type="hidden" name="type" value="{$type}">
      <p>
        <label for="" class="search-f-label">订单编号</label>
        <input type="text" class="search-f-ipt1" name="search_filter[order_code]" value="{$search_filter.order_code}">
      </p>
      <p>
        <label for="" class="search-f-label">影院名称</label>
        <input type="text" class="search-f-ipt1" name="search_attach_filter[cinema_name]" value="{$search_attach_filter.cinema_name}">
      </p>
      <p>
        <label for="" class="search-f-label">合伙人姓名</label>
        <input type="text" class="search-f-ipt1" name="search_attach_filter[agency_name]" value="{$search_attach_filter.agency_name}">
      </p>
      <p>
        <label for="" class="search-f-label">影院销售姓名</label>
        <input type="text" class="search-f-ipt1" name="search_attach_filter[cinema_assistant_name]" value="{$search_attach_filter.cinema_assistant_name}">
      </p>
        <p>
            <label for="" class="search-f-label">地区筛选：</label>
            <select name="search_attach_filter[province_id]" class="js_provinceList" style="width:120px;">
                <option value="0" selected="selected">请选择省份</option>
            </select>
            <select name="search_attach_filter[city_id]" class="js_cityList" style="width:120px;{if !$search_filter['city_id'] || $search_filter['city_id'] == '000000'}display:none;{/if}">
                <option value="0">请选择城市</option>
            </select>
            <select name="search_attach_filter[district_id]" class="js_countyList" style="width:120px;{if !$search_attach_filter['district_id'] || $search_attach_filter['district_id'] == '000000'}display:none;{/if}">
                <option value="0">请选择区(县)</option>
            </select>
        </p>
      <p>
        <label for="" class="search-f-label">订单状态：</label>
        <select class="search-f-slt1" name="search_filter[progress]">
          <option value="-1" {if $search_filter.progress == '-1'}selected{/if}>全部</option>
          {foreach order_config::$store_progress as $k=>$v}
            <option value="{$k}" {if $search_filter.progress && $search_filter.progress == $k}selected{/if}>{$v}</option>
          {/foreach}
        </select>
      </p>
      <p class="js-time-range-check">
        <label for="" class="search-f-label">下单时间：</label>
        <input type="text" class="search-f-ipt1 search-f-ipt2 js-date-picker js-start-time" name="search_filter[start_date_add]" value="{$search_filter.start_date_add}">
        <span class="search-f-line"></span>
        <input type="text" class="search-f-ipt1 search-f-ipt2 js-date-picker js-end-time" name="search_filter[end_date_add]" value="{$search_filter.end_date_add}">
      </p>
      <p class="js-time-range-check">
        <label for="" class="search-f-label">收货时间：</label>
        <input type="text" class="search-f-ipt1 search-f-ipt2 js-date-picker js-start-time" name="search_filter[start_date_receiver]" value="{$search_filter.start_date_receiver}">
        <span class="search-f-line"></span>
        <input type="text" class="search-f-ipt1 search-f-ipt2 js-date-picker js-end-time" name="search_filter[end_date_receiver]" value="{$search_filter.end_date_receiver}">
      </p>
      <p class="js-time-range-check">
        <label for="" class="search-f-label">支付时间：</label>
        <input type="text" class="search-f-ipt1 search-f-ipt2 js-date-picker js-start-time" name="search_filter[start_date_pay]" value="{$search_filter.start_date_pay}">
        <span class="search-f-line"></span>
        <input type="text" class="search-f-ipt1 search-f-ipt2 js-date-picker js-end-time" name="search_filter[end_date_pay]" value="{$search_filter.end_date_pay}">
      </p>
      <p><label for="" class="search-f-label"></label><button type="submit" class="btn btn-success btn-xs js_searchBtn">搜索</button></p>
    </form>
  </div>

  <table class="list-table goods-table" style="margin-bottom: 20px;">
    <thead>
      <tr>
        <th>订单总数</th>
        <!--<th>订单金额</th>-->
      </tr>
    </thead>
    <tbody>
      <tr>
        <td>{$order_count}</td>
        <!--<td>123</td>-->
      </tr>
    </tbody>
  </table>
  <!--start:列表-->
{include_core file="admin/lib/pager.html"}
    <div>
      <table class="list-table goods-table">
        <caption style="height:auto;display: none">
          <p>按专员：</p>
        </caption>
        {$order_type_list = order_config::$order_type}
        <thead>
          <tr>
            <th>订单编号</th>
            <th style="min-width: 80px;">下单日期</th>
            <th style="min-width: 200px;">商品</th>
            <th>单价(元)</th>
            <th>实际需支付(元)</th>
            <th>数量</th>
            <th>总数</th>
            <th>总价(元)</th>
            <th>合伙人</th>
            <th>影院专员</th>
            <th>影院名称</th>
            <th>影院负责人</th>
            <th>支付时间</th>
            <th>省</th>
            <th>市</th>
            <th>区</th>
            <th>详细地址</th>
            <th>交易状态</th>
            <th>操作</th>
          </tr>
        </thead>
        <tbody>
          {foreach $order_list as $k=>$v}
            {$order_count = count($v.order_relation)}
            {foreach $v.order_relation as $key=>$order_relation_info}
              <tr data-id="{$v.id}" id="dataList{$v.id}">
                {if $key == 0}
                  <td rowspan="{$order_count}">
                    {order_helper::order_id_encode($v.id)}
                    {if $v.task_user_id}<br />代理下单：{user_helper::display_name($v.task_user_id)}{/if}
                    {if $v.task_desc}<br />代理备注：{$v.task_desc}{/if}
                    {if $v.transaction_id}
                    <br />交易号:{$v.transaction_id}
                    {/if}
                  </td>
                {/if}
                {$goods_info = goods_helper::get_goods_info($order_relation_info['goods_id'])}
                {if $key == 0}
                <td rowspan="{$order_count}">{str_replace(' ', '<br />', $v.add_time)}</td>
                {/if}
                <td>
                <p>分类：{_uri('category', $goods_info['category_id'], 'title')}</p>
                <p>商品名称：{$goods_info['title']}</p>
                <p>商品简介：{$goods_info['intro']}</p>
                </td>
                <td>{$order_relation_info.goods_price}</td>
                <td>{$order_relation_info.real_price}</td>
                <td>{$order_relation_info.goods_num}</td>
                {if $key == 0}
                  {if $v.cinema_assistant_id}
                    {$cinema_assistant_info = user_helper::get_user_info($v.cinema_assistant_id)}
                    {$v.cinema_assistant_info = $cinema_assistant_info}
                  {/if}
                  <td rowspan="{$order_count}">{$v.goods_num}</td>
                  <td rowspan="{$order_count}">{$v.price}</td>
                  <td rowspan="{$order_count}">
                    {$v.dealer_info.realname} {$v.dealer_info.mobile}</td>
                  <td rowspan="{$order_count}">
                    {$cinema_assistant_info.realname} {$cinema_assistant_info.mobile}</td>
                  <td rowspan="{$order_count}">
                    {$user_info = user_helper::get_user_info($v.user_id)}
                    {$user_role_id = user_helper::get_user_role_id($v.user_id)}
                      {if $user_role_id == user_config::STORE_MANAGER || $user_role_id == user_config::STORE_OWNER}
                        {$store_info = store_helper::get_store($v.store_id)}
                        {$cinema_info = cinema_helper::get_cinema_info_by_id($store_info['id'])}
                        {if $cinema_info.cinema_name}{$cinema_info.title}{else}{$store_info.title}{/if}
                      {/if}

                    {*<p>收货地址：<span>{$v.province} {$v.city} {$v.district} {$v.address}</span></p>
                    {if $v.invoice_title}
                    <p>发票：<span>{$v.invoice_title}({order_config::$invoice_type[$v.invoice_type]})</span></p>
                    {/if}
                    {$express_title = _uri('express',$v.express_id,'title')}
                    <p>物流公司：{$express_title}</p>
                    {if $v.express_no}
                    <p>物流单号：{$v.express_no}</p>
                    {/if}
                    {if $v.deliver_type}
                    <p>配送时间：{order_config::$deliver_type[$v.deliver_type]}</p>
                    {/if}*}

                  </td>
                  <td rowspan="{$order_count}">
                    {$user_info.realname} {$user_info.mobile}
                  </td>
                  <td rowspan="{$order_count}">
                      {if $v.pay_time != '0000-00-00 00:00:00'}
                      支付时间：{$v.pay_time}
                      {else}
                      未支付
                      {/if}
                  </td>
                  <td rowspan="{$order_count}">
                    {if $cinema_info.province}
                    {$cinema_info.province}
                    {else}
                    {$province_info = area_helper::get_area_info($store_info.province_id)}{$province_info['area']}
                    {/if}
                  </td>
                  <td rowspan="{$order_count}">
                    {if $cinema_info.city}
                    {$cinema_info.city}
                    {else}
                    {$city_info = area_helper::get_area_info($store_info.city_id)}{$city_info['area']}
                    {/if}
                  </td>
                  <td rowspan="{$order_count}">
                    {if $cinema_info.county}
                    {$cinema_info.county}
                    {else}
                    {$county_info = area_helper::get_area_info($store_info.district_id)}{$county_info['area']}
                    {/if}
                  </td>
                  <td rowspan="{$order_count}">
                    {$store_info.address}
                  </td>
                  {$order_progress_list = order_config::$store_progress}
                  <td rowspan="{$order_count}">
                    {if $v.progress == 1}
                      <span class="label label-warning">{$order_progress_list[$v.progress]}</span>
                    {elseif $v.progress == 10}
                      <span class="label label-success">{$order_progress_list[$v.progress]}</span>
                    {elseif $v.progress == 15}
                      <span class="label label-default">{$order_progress_list[$v.progress]}</span>
                    {else}
                      <span class="label label-info">{$order_progress_list[$v.progress]}</span>
                    {/if}
                  </td>
                  <td data-status="{$status}" rowspan="{$order_count}">
                    {if $role_id == user_config::ADMIN || $role_id == user_config::OPERATOR}
                      {if $status}
                        <a href="{AnUrl("order/admin/delete?id={$v.id}")}" class="btn btn-danger btn-xs js_deleteOrder"><i class="icon-trash icon-white"></i>删除订单</a>
                      {else}
                        <a href="{AnUrl("order/admin/change_status?id={$v.id}")}" class="btn btn-warning btn-xs js_changeStatus"><i class="icon-trash icon-white"></i>还原</a>
                      {/if}
                    {/if}
                    {if $role_id == user_config::ADMIN || $role_id == user_config::OPERATOR || $role_id == user_config::ASSISTANT}
                      {if $v.progress == 5}
                         <!--<a href="{AnUrl("order/admin/store_order/finish_store_order?id={$v.id}")}" class="btn btn-danger btn-xs js_finishStoreOrder"><i class="icon-trash icon-white"></i>确认送达</a>             -->
                      {/if}
                    {/if}
                    <i class="js-order-detail" style="display: none;">{json_encode($v)}</i>
                  </td>
                {/if}
              </tr>
            {/foreach}
          {foreachelse}
            <tr><td class="txtleft" colspan="19">暂无数据</td></tr>
          {/foreach}
        </tbody>
      </table>
    </div>
  <div class="js_expressDiv" style="display:none;">
    <div style="padding:20px;line-height:30px;">
      {foreach  $express_list as $k=>$v}
      <div class="js_expressTitle" data-id="{$v.id}">物流公司：{$v.title}</div>
      {/foreach}
      <div>物流单号：<input type="text" class="js_expressInp"></div>
    </div>
  </div>

  {include_core file="admin/lib/pager.html"}
<!--end:列表-->
<script>

    //初始化省份列表
$.ajax({
        url : 'area/admin/ajax_get_provinces',
        type : 'get',
        dataType : 'json',
        success : function(province_list){
            for (var i in province_list) {
                var opt = $('<option value="'+province_list[i]['area_code']+'">'+province_list[i]['area']+'</option>');
                $('.js_provinceList').append(opt);
            }

            {if $search_attach_filter['province_id']}
            $('.js_provinceList').val("{$search_attach_filter['province_id']}");
            //触发请求
            $('.js_provinceList').change();
            {/if}

            {if $search_attach_filter['city_id']}
            $('.js_provinceList').val("{$search_attach_filter['province_id']}");
            $('.js_cityList').val("{$search_attach_filter['city_id']}");
            $('.js_cityList').change();
            $('.js_countyList').val("{$search_attach_filter['district_id']}");
            {/if}
        }
    });




$(function(){
    $('.js_provinceList').change(function(){
        //获取值
        if($(this).val() !== '0'){
            var province = $(this).val();
            $('.js_cityList').slideDown();
            $('.js_cityList').val('0');
            $('.js_countyList').slideUp();
            $('.js_countyList').val('0');
        }else{
            $('.js_cityList').slideUp();
            $('.js_countyList').slideUp();
            $('.js_countyList').val('0');
            $('.js_cityList').val('0');
            return false;
        }
        $('.js_cityList').empty();
        $('.js_cityList').append('<option value="0">请选择城市</option>');
        $('.js_countyList').empty();
        $('.js_countyList').append('<option value="0">请选择区(县)</option>');

        //发送ajax
        $.ajax({
            url : 'area/admin/ajax_get_citys?province_code='+province,
            success : function(city_list){
                for (var i in city_list) {
                    var opt = $('<option value="'+city_list[i]['area_code']+'">'+city_list[i]['area']+'</option>');
                    $('.js_cityList').append(opt);
                }

                {if $search_attach_filter['city_id']}
                $('.js_cityList').val("{$search_attach_filter['city_id']}");
                {/if}
            },
            type : 'get',
            dataType : 'json',
            async : false,
        });


    });
    //城市
    $('.js_cityList').change(function(){
        if ( $('.js_provinceList').val() === '0' || $('.js_cityList').val() === '0') {
            $('.js_countyList').slideUp();
            $('.js_countyList').val('0');
            return false;
        } else {
            $('.js_countyList').slideDown();
            $('.js_countyList').val('0');
        }

        $('.js_countyList').empty();
        $('.js_countyList').append('<option value="0">请选择区(县)</option>');

        //获取省份的key和值
        var province_code = $('.js_provinceList').val();
        var pro_text = $('.js_provinceList').text();

        //获取城市的值
        var city_code = $(this).val();

        //发送ajax
        $.ajax({
            url : 'area/admin/ajax_get_countys?province_code='+province_code+'&city_code='+city_code,
            type : 'get',
            dataType : 'json',
            success : function(county_list){
                for (var i in county_list) {
                    var opt = $('<option value="'+county_list[i]['area_code']+'">'+county_list[i]['area']+'</option>');
                    $('.js_countyList').append(opt);
                }

                {if $search_attach_filter['district_id']}
                $('.js_countyList').slideDown();
                $('.js_countyList').val("{$search_attach_filter['district_id']}");
                {/if}
            }
        });

    });

  //弹层取消操作
  $('.js_cancel').click(function(){
    $('.float-confirm').hide();
  })

  //触发发货事件
  $('.js_deliveryBtn').click(function(){
    var order_id = $(this).closest('tr').data('id');
    showConfirmDiv($('.js_recommendDiv'), order_id);
  })

  // 同意发货操作
  $('#js_allow').click(function(){
    var express_name = $.trim($('.js_express_name').val());
    var express_no = $.trim($('.js_express_no').val());
    var express_note = $.trim($('.js_express_note').val());
    var id = $('.js_recommendDiv').data('id');

    if (!express_name || express_name == '') {
      showMsg('请填写物流公司名称');
      return false;
    }
    if (!express_no) {
      showMsg('请填写物流单号');
      return false;
    }
    showMask('正在提交中...', 1);
    $.post(
      "{AnUrl('order/admin/shipping')}",
      { express_no:express_no, express_name:express_name, express_note:express_note, id:id },
      function (data){
        if (data.info != 'ok') {
          showMsg(data.info);
        }
        location.href = location.href;
      },
      'json'
    );
  });

  //触发收款按钮事件
  $('.js_payBtn').click(function(){
    var order_id = $(this).closest('tr').data('id');
    showConfirmDiv($('.js_confirm_moneyDiv'), order_id);
  });

  // 确认收款操作
  $('#js_confirm_moneyAllow').click(function(){
    var confirm_money_note = $.trim($('.js_confirm_money_note').val());
    var confirm_money_name = $.trim($('.js_confirm_money_name').val());
    var confirm_money_time = $.trim($('.js_confirm_money_time').val());

    var id = $('.js_confirm_moneyDiv').data('id');
    var params = {};
    params.id = id;

    if (!confirm_money_name) {
        alert('请填写收款人姓名!');
        return;
    }
    params.confirm_money_name = confirm_money_name;

    if (!confirm_money_time) {
        alert('请填写收款时间!');
        return;
    }
    params.confirm_money_time = confirm_money_time;

    if (confirm_money_note) {
        params.confirm_money_note = confirm_money_note;
    }
    showMask('正在提交中...', 1);
    $.post(
      "{AnUrl('order/admin/confirm_pay')}",
      params,
      function (data){
        if (data.info != 'ok') {
          showMsg(data.info);
        }
        location.href = location.href;
      },
      'json'
    );
  });

  // 单个订单删除
  $(".js_deleteOrder,.js_changeStatus").live('click',function(e){
    e.preventDefault();
    e.stopPropagation();
    var selectId = $(this).closest("tr").attr("id");
    var roleId = $(this).closest("tr").data("id");
    if (!selectId) {
      alert('请选择要操作记录');
    }

    var clickObj = $(this);
    var url = clickObj.attr("href");
    var cardListBox = clickObj.closest('.cardListBox');
    var lines = $(this).parent().attr('rowspan');
    var notice = {if $status == 1}'确定要删除此订单吗？'{else}'确定执行此操作吗?'{/if};
    showConfirm(notice, 1, function(){
      $.post(url, {  'id':selectId }, function(json){
        if (json.info != 'ok') {
          alert(json.info);
        } else {
          clickObj.closest("tr").fadeOut(function(){
            if (lines) {
              for (var i = 1; i < lines; i++) {
                $(this).next().remove();
              }
            };
            $(this).remove();
            interLineColor();
            {if $status == 1}
            showMsg('删除成功!被删除订单可在回收站还原.', 1);
            {/if}
            if (cardListBox) {
              var trNum = cardListBox.find('.deleteOne').length;
              var level_total = cardListBox.attr('data-level_total');
              consoleLog(trNum);
              consoleLog(level_total);
              if (trNum < level_total) {
                $('.addCard').show();
              }
            }

            location.href = location.href;
          });
        }
      }, 'json');
    });
    return false;
  });

//单个订单删除
  $(".js_finishStoreOrder").live('click',function(e){
    e.preventDefault();
    e.stopPropagation();
    alert(2);
    var selectId = $(this).closest("tr").attr("id");
    var roleId = $(this).closest("tr").data("id");
    if (!selectId) {
      alert('请选择要操作记录');
    }

    var clickObj = $(this);
    var url = clickObj.attr("href");
    var cardListBox = clickObj.closest('.cardListBox');
    var lines = $(this).parent().attr('rowspan');
    var notice = '确定执行此操作吗?';
    showConfirm(notice, 1, function(){
      $.post(url, {  'id':selectId }, function(json){
        if (json.info != 'ok') {
          alert(json.info);
        } else {
            showMsg('操作成功!');

            location.href = location.href;
        }
      }, 'json');
    });
    return false;
  });



  // added by ninghx 2012-07-31 将页面中的时间插件转移到公用的js中
/*   $('#js_confirm_money_time').datepicker({
    dateFormat: 'yy-mm-dd',
    showButtonPanel: true,
    yearRange: '1900:'+new Date().getFullYear(),
    changeYear:true,
    changeMonth:true,
    maxDate: new Date(),
    yearSuffix: ''
  }); */

  //取消订单事件
  $('.js_cancelOrderBtn').click(function(){
    var order_id = $(this).closest('tr').data('id');
    showConfirmDiv($('.js_cancelOrderDiv'), order_id);
  });

  //同意取消订单操作
  $('#js_cancelOrderAllow').click(function(){
    var order_reason = $.trim($('.js_cancelOrderReason').val());
    var id = $('.js_cancelOrderDiv').data('id');

    if (!order_reason || order_reason == '') {
      showMsg('请填写取消订单的理由');
      return false;
    }

    showMask('正在提交中...', 1);

    $.post(
      "{AnUrl('order/admin/cancel_order')}",
      { order_reason:order_reason, id:id },
      function (data){
        if (data.info != 'ok') {
          showMsg(data.info);
        }
        location.href = location.href;
      },
      'json'
    );
  });

  function showConfirmDiv(obj, id) {
    var width = $(window).width();
    var height = $(window).height();
    var divWidth = parseInt(obj.css('width'));
    var divHeight = parseInt(obj.css('height'));
    var leftWidth = $(window).scrollLeft() + (width - divWidth) / 2;
    var topHeight = $(window).scrollTop() + (height - divHeight) / 2;
    obj.css({ left:leftWidth+'px', top:topHeight+'px' }).attr('data-id', id).show();
  }
});
</script>
<div class="float-confirm js_recommendDiv" style="z-index: 20000;display: none; width:auto;">
  <div class="float-confirm-con">
    <p style="font-size:18px;color:#23a18b;">输入物流编号发货</p>
    <div style="width:auto;height:1px;background:#CCC;margin-bottom:20px;"></div>
    <div style="width:500px;height:auto;margin-bottom:15px;">
      <table style="line-height:50px;" class="js_expressTable">
        <tr>
          <td><span style="color:red;">*</span>物流公司：</td>
          <td style="min-width:400px;">
            {*<select class="js_express_code">
              <option value="0">请选物流递公司</option>
              {foreach $express_list as $v}
              <option value="{$v.id}">{$v.title}</option>
              {/foreach}
            </select>*}
            <input type="text" name="express_name" class="js_express_name">
          </td>
        </tr>
        <tr>
          <td><span style="color:red;">*</span>物流编号：</td>
          <td style="min-width:400px;">
            <input type="text" name="express_no" class="js_express_no">
          </td>
        </tr>
        <tr>
          <td>备注：</td>
          <td style="min-width:400px;">
            <textarea name="express_note" class="add-f-area textarea_box js_express_note"></textarea>
          </td>
        </tr>
      </table>
    </div>
    <div style="width:auto;height:1px;background:#CCC;margin-bottom:20px;"></div>
    <div class="float-confirm-btns" style="padding-bottom:30px;">
      <a id="js_allow" class="btn btn-success btn-sm left" href="javascript:void(0);">确定</a>
      <a class="btn btn-default btn-sm left js_cancel" href="javascript:void(0);">取消</a>
    </div>
  </div>
</div>
<div class="float-confirm js_confirm_moneyDiv" style="z-index: 20000;display: none; width:auto;">
  <div class="float-confirm-con">
    <p style="font-size:18px;color:#23a18b;">输入收款备注</p>
    <div style="width:auto;height:1px;background:#CCC;margin-bottom:20px;"></div>
    <div style="width:500px;height:auto;margin-bottom:15px;">
      <table style="line-height:50px;" class="js_expressTable">
      <tr>
          <td><span style="color:red;">*</span>收款人：</td>
          <td style="min-width:400px;">
            <input type="text" class="search-f-ipt1 js_confirm_money_name" name="" value="">
          </td>
        </tr>
         <tr>
          <td><span style="color:red;">*</span>收款时间：</td>
          <td style="min-width:400px;">
             <input type="text" class="search-f-ipt1 js_confirm_money_time" id="js_confirm_money_time" name=""   value="">
          </td>
        </tr>
        <tr>
          <td>备注：</td>
          <td style="min-width:400px;">
            <textarea name="confirm_money_note" class="add-f-area textarea_box js_confirm_money_note"></textarea>
          </td>
        </tr>
      </table>
    </div>
    <div style="width:auto;height:1px;background:#CCC;margin-bottom:20px;"></div>
    <div class="float-confirm-btns" style="padding-bottom:30px;">
      <a id="js_confirm_moneyAllow" class="btn btn-success btn-sm left" href="javascript:void(0);">确定</a>
      <a class="btn btn-default btn-sm left js_cancel" href="javascript:void(0);">取消</a>
    </div>
  </div>
</div>
<div class="float-confirm js_cancelOrderDiv" style="z-index: 20000;display: none; width:auto;">
  <div class="float-confirm-con">
    <p style="font-size:18px;color:#23a18b;">取消订单理由</p>
    <div style="width:auto;height:1px;background:#CCC;margin-bottom:20px;"></div>
    <div style="width:500px;height:auto;margin-bottom:15px;">
      <table style="line-height:50px;" class="js_expressTable">
        <tr>
          <td>理由：</td>
          <td style="min-width:400px;">
            <textarea name="reason" class="add-f-area textarea_box js_cancelOrderReason"></textarea>
          </td>
        </tr>
      </table>
    </div>
    <div style="width:auto;height:1px;background:#CCC;margin-bottom:20px;"></div>
    <div class="float-confirm-btns" style="padding-bottom:30px;">
      <a id="js_cancelOrderAllow" class="btn btn-success btn-sm left" href="javascript:void(0);">确定</a>
      <a class="btn btn-default btn-sm left js_cancel" href="javascript:void(0);">取消</a>
    </div>
  </div>
</div>
<div class="float-bg" style="z-index: 19999; display: none"></div>
{include_core file="module/search_form_check.html"}
{include_core file="admin/lib/footer.html"}